<template>
	<view>
		<view class="header">
			<!-- 背景点缀 -->
			<view class="bg" />
			<view class="padded-content">
				<view class="info white flex">
					<view class="img-wrap avatar">
						<image src="../../static/image/avatar.png" mode="widthFix"></image>
					</view>
					<view style="margin-left: 40rpx;" class="flex-1 flex flex-column justify-content-center">
						<view>
							<view class="mb-2 nickname">{{avatar}}</view>
							<view class="label">{{level}}</view>
						</view>
					</view>
					<view class="qrcode flex align-items-center">
						<view class="iconfont icon-qrcode" />
					</view>
				</view>
			</view>
		</view>
		<view class="grid">
			<view class="card padded-content bg-white">
				<view class="title">
					我的功能
				</view>

				<!-- 宫格布局 -->
				<view class="row">
					<view class="col-4">
						<view class="menu">
							<view class="iconfont icon-score"></view>
							<view class="menu-title">积分</view>
						</view>
					</view>
					<view class="col-4">
						<view class="menu">
							<view class="iconfont icon-coupon"></view>
							<view class="menu-title">优惠券</view>
						</view>
					</view>
					<view class="col-4">
						<view class="menu">
							<view class="iconfont icon-money"></view>
							<view class="menu-title">钱包</view>
						</view>
					</view>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	
	export default {
		data() {
			return {
				avatar: 'Return',
				level:"L2"
			}
		},
		onLoad() {
		
		},
		methods: {
		
		}
	}
	
</script>

<style scoped>
	.header {
		background-color: #EAC787;
		height: 344rpx;
	}

	.header .bg {
		position: absolute;
		width: 100%;
		height: 344rpx;
		background: url(../../static/image/bg.png);
		background-size: contain;
	}

	.header .info {
		margin-top: 55rpx;
	}

	.header .info .avatar {
		width: 160rpx;
	}

	.header .info .nickname {
		font-weight: bold;
	}

	.header .info .qrcode .iconfont {
		font-size: 80rpx;
	}

	.grid .card {
		position: relative;
		bottom: 30rpx;
		margin-left: 30rpx;
		margin-right: 30rpx;
		border-radius: 16rpx;
	}

	.grid .card .title {
		color: #333;
		font-weight: bold;
		font-size: 28rpx;
		margin-bottom: 20rpx;
	}

	.grid .card .iconfont {
		color: #fcca28;
		font-size: 48rpx;
		margin-bottom: 10rpx;
	}

	.grid .card .menu {
		text-align: center;
		font-size: 26rpx;
	}
</style>
